import request from '../utils/request';
import {UnwrapRef} from "vue";



export const fetchData = () => {
    return request({
        url: './table.json',
        method: 'get'
    });
};
export const fetchData_rule = () => {
    return request({
        url: './table_rule.json',
        method: 'get'
    });
};
export const fetchData_s_mongodb_evidence_Views = (case_number:string,type:string) => {
    return request({
        url: '/api/s_mongodb_evidence_Views/',
        timeout: 6000000,
        method: 'get',
        params:{case_number,type}
    });
};

export const fetchData_c_mongodb_evidence_Views = (case_number:string,type:string) => {
    return request({
        url: '/api/c_mongodb_evidence_Views/',
        method: 'get',
        params:{case_number,type}
    });
};



export const fetchData_s_mongodb_evidence_Cre = (form:FormData) => {
    return request({
        url: '/api/s_mongodb_evidence_Create/',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data:form,
        method: 'post'
    });
};
export const Ocr_image = (form:FormData) => {
    return request({
        url: '/api/BasicOcr/',
        headers: {
            'Content-Type': 'multipart/form-data'
        },
        data:form,
        method: 'post'
    });
};

export const case_evidence_Views = (case_id:number,evi_id_number:string='') => {
    return request({
        url: '/api/case_evidence_Views/',
        method: 'get',
        params:{case_id,evi_id_number}
    });
};

export const review_price_Views = (case_id:number,evi_id_number:string='') => {
    return request({
        url: '/api/review_price_Views/',
        method: 'get',
        params:{case_id,evi_id_number}
    });
};

//行政罚款依据时间上传
export const fetchData_time_upload=(case_id:number,administrative_fine_time:string='')=>{
    return request({
        url: '/api/administrative_fine_time_add/',
        method: 'get',
        params:{case_id,administrative_fine_time}
    });
}

//归档信息上传
export const fetchData_archive_data_upload=(case_id:number,archive_time:string='',archive_person:string='')=>{
    return request({
        url: '/api/archive_data_upload/',
        method: 'get',
        params:{case_id,archive_time,archive_person}
    });
}



export const case_evidence_Edit = (case_id:number,evi_id_number1:string='',evi_id_number2:string='',
                                   date_of_filing:string='',tlc_id:string='',mer_id:string='',tce_address:string='',
                                   staff_id:string='',staff_case_ter_per_id:string='') => {
    return request({
        url: '/api/case_evidence_Edit/',
        method: 'get',
        params:{case_id,evi_id_number1,evi_id_number2,
            date_of_filing,tlc_id,mer_id,tce_address,
            staff_id,staff_case_ter_per_id}
    });
};

export const illegal_record_Search = (case_id:number,evi_id_number:string='') => {
    return request({
        url: '/api/illegal_record_Search/',
        method: 'get',
        params:{case_id,evi_id_number}
    });
};
export const illegal_record_data = (case_id:number) => {
    return request({
        url: '/api/illegal_record_data/',
        method: 'get',
        params:{case_id}
    });
};

export const add_person=(attend_person:string='',attend_person_all:string='')=>{
    return request({
        url: '/api/add_person/',
        method: 'get',
        params:{attend_person,attend_person_all}
    });
}

export const fetchData_information_add=(case_id:number,cigarette_origin:string='',illegal_behavior:string='',violate_law:string='',punish_basis:string='')=>{
    return request({
        url: '/api/information_add/',
        method: 'get',
        params:{case_id,cigarette_origin,illegal_behavior,violate_law,punish_basis}
    });
}

//调查终结文书获取违法事件、违反法律、卷烟来历等信息
export const law_punish_illegal_behavior_data=(case_id:number)=>{
    return request({
        url: '/api/law_punish_illegal_behavior_data/',
        method: 'get',
        params:{case_id}
    });
}

export const add_illegal_law_basis=(added_information:string='',add_information:string='')=>{
    return request({
        url: '/api/add_illegal_law_basis/',
        method: 'get',
        params:{added_information,add_information}
    });
}

export const inspection_records_data_browse=(case_id:number)=>{
    return request({
        url: '/api/inspection_records_data_browse/',
        method: 'get',
        params:{case_id}
    });
}
//集体讨论信息
export const collective_discuss_data=(case_id:number)=>{
    return request({
        url: '/api/collective_discuss_data/',
        method: 'get',
        params:{case_id}
    });
}

export const case_handing_data=(case_id:number)=>{
    return request({
        url: '/api/case_handing_data/',
        method: 'get',
        params:{case_id}
    });
}

export const case_handing_browse_data=(case_id:number)=>{
    return request({
        url: '/api/case_handing_browse_data/',
        method: 'get',
        params:{case_id}
    });
}

export const group_discuss_browse_data=(case_id:number)=>{
    return request({
        url: '/api/group_discuss_browse_data/',
        method: 'get',
        params:{case_id}
    });
}


//行政处罚决定书数据
export const punish_decision_browse_data=(case_id:number)=>{
    return request({
        url: '/api/punish_decision_browse_data/',
        method: 'get',
        params:{case_id}
    });
}

//结案报告表数据
export const final_report_browse_data=(case_id:number)=>{
    return request({
        url: '/api/final_report_browse_data/',
        method: 'get',
        params:{case_id}
    });
}


export const check_record_data=(case_id:number)=>{
    return request({
        url: '/api/check_record_data/',
        method: 'get',
        params:{case_id}
    });
}

export const print_inkjet_record_data=(case_id:number,evi_id_number:string='')=>{
    return request({
        url: '/api/print_inkjet_record_data/',
        method: 'get',
        params:{case_id,evi_id_number}
    });
}

//询问笔录打印
export const inquiry_record_print_data=(case_id:number)=>{
    return request({
        url: '/api/inquiry_record_print_data/',
        method: 'get',
        params:{case_id}
    });
}

//勘验笔录现场记录
export const scene_inquiry_record_print_data=(case_id:number)=>{
    return request({
        url: '/api/scene_print_data/',
        method: 'get',
        params:{case_id}
    });
}

//判断是否进行卷烟送检
export const inspection_judge_state=(case_id:number)=>{
    return request({
        url: '/api/inspection_judge_state/',
        method: 'get',
        params:{case_id}
    });
}
//卷烟鉴别管理判断是否进行卷烟送检
export const judge_whether_send_inspection=(case_id:number)=>{
    return request({
        url: '/api/judge_whether_send_inspection/',
        method: 'get',
        params:{case_id}
    });
}


//判断是否勘验笔录是否进行现场询问
export const judge_whether_inquiry=(case_id:number)=>{
    return request({
        url: '/api/judge_whether_inquiry/',
        method: 'get',
        params:{case_id}
    });
}

//听证告知书送达回证打印
export const hearing_arrive_document_print_data=(case_id:number)=>{
    return request({
        url: '/api/hearing_arrive_document_print_data/',
        method: 'get',
        params:{case_id}
    });
}

//行政处罚事先告知书送达回证打印
export const arrive_document_print_data=(case_id:number,arrive_document_name:string)=>{
    return request({
        url: '/api/arrive_document_print_data/',
        method: 'get',
        params:{case_id,arrive_document_name}
    });
}



//集体讨论记录打印
export const group_discuss_print_data=(case_id:number)=>{
    return request({
        url: '/api/group_discuss_print_data/',
        method: 'get',
        params:{case_id}
    });
}

//判断是否召开集体讨论
export const judge_collective_discuss=(case_id:number)=>{
    return request({
        url: '/api/judge_collective_discuss/',
        method: 'get',
        params:{case_id}
    });
}


export const inquiry_record_data = (case_id:number,evi_id_number:string='') => {
    return request({
        url: '/api/inquiry_record_data/',
        method: 'get',
        params:{case_id,evi_id_number}
    });
};

export const hearing_arrive_document=(case_id:number)=>{
    return request({
        url: '/api/hearing_arrive_document/',
        method: 'get',
        params:{case_id}
    });
}

export const advance_arrive_document=(case_id:number)=>{
    return request({
        url: '/api/advance_arrive_document/',
        method: 'get',
        params:{case_id}
    });
}

//听证告知书部分信息显示
export const hearing_notice_data=(case_id:number)=>{
    return request({
        url: '/api/hearing_notice_data/',
        method: 'get',
        params:{case_id}
    });
}

//听证告知书预览及打印
export const hearing_notice_browse_data=(case_id:number)=>{
    return request({
        url: '/api/hearing_notice_browse_data/',
        method: 'get',
        params:{case_id}
    });
}


export const illegal_record_update = (case_id:number,mer_id:string='',date_of_filing:string='',case_source:string='',tir_person:string='',
                                      tir_id_number:string='',case_number:string='') => {
    return request({
        url: '/api/illegal_record_update/',
        method: 'get',
        params:{case_id,mer_id,date_of_filing,case_source,tir_person, tir_id_number,case_number}
    });
};
//获取权限表数据
export const featch_permiss_data = () => {
    return request({
        url: '/api/permiss_data/',
        method: 'get'
    });
};
//获取权限表数据
export const featch_user_permiss_data = (staff_account_no:string='') => {
    return request({
        url: '/api/staff_permiss_data/',
        method: 'get',
        params:{staff_account_no}
    });
};

//获取权限表数据
export const staff_permiss_data_create = (staff_account_no:string='',permiss_list:string='') => {
    return request({
        url: '/api/staff_permiss_data_create/',
        method: 'get',
        params:{staff_account_no,permiss_list}
    });
};

//核价表打印
export const review_price_data=(case_id:number)=>{
    return request({
        url: '/api/review_price_data/',
        method: 'get',
        params:{case_id}
    });
}

//询问笔录信息显示
export const record_inquiry_show = (case_id:number) => {
    return request({
        url: '/api/record_inquiry_show/',
        method: 'get',
        params:{case_id}
    });
};


//询问笔录信息打印
export const record_inquiry_print = (case_id:number) => {
    return request({
        url: '/api/record_inquiry_print/',
        method: 'get',
        params:{case_id}
    });
};
//调查终结文书
export const end_record_data = (case_id:number) => {
    return request({
        url: '/api/end_record_data/',
        method: 'get',
        params:{case_id}
    });
};

export const end_record_update = (case_id:number,mer_id:number,date_of_filing:string='',case_source:string='',tir_person:string='',
                                      tir_id_number:string='',case_number:string='',staff_id:string='',staff_case_ter_per_id:string='',
                                  tel:string='',tir_home:string='') => {
    return request({
        url: '/api/end_record_update/',
        method: 'get',
        params:{case_id,mer_id,date_of_filing,case_source,tir_person,
            tir_id_number,case_number,staff_id,staff_case_ter_per_id,tel,tir_home}
    });
};
export const update_staff_evidence_data = (case_id:number,mer_id:number,date_of_filing:string='',case_source:string='',tir_person:string='',
                                  tir_id_number:string='',case_number:string='',area_id:string='',staff_evi_rec_address:string='',
                                           staff_evi_send_per:string='',staff_evi_send_per2:string='',staff_evi_check_per1:string='',
                                           staff_evi_check_per2:string='', staff_evi_send_time:string='',staff_evi_identity_time:string='' ,
                                           staff_evi_send_unit:string='',staff_evi_per_note:string='') => {
    return request({
        url: '/api/update_staff_evidence/',
        method: 'get',
        params:{case_id,mer_id,date_of_filing,case_source,tir_person,
            tir_id_number,case_number,area_id,staff_evi_rec_address,staff_evi_send_per,staff_evi_send_per2,staff_evi_check_per1,
            staff_evi_check_per2, staff_evi_send_time,staff_evi_identity_time ,staff_evi_send_unit,staff_evi_per_note  }
    });
};

export const post_cigarette_indentify=(case_id:number,staff_evi_check_per1:string='',staff_evi_check_per2:string,
                                       staff_evi_identity_time:string='')=>{
    return request({
        url: '/api/post_cigarette_indentify/',
        method: 'get',
        params:{case_id,staff_evi_check_per1,staff_evi_check_per2,staff_evi_identity_time}
    });
}

export const staff_unit_data=(work_unit_id: number,work_unit_name:string='')=>{
    return request({
        url: '/api/staff_unit_data/',
        method: 'get',
        params:{work_unit_id,work_unit_name}
    });
}

export const evi_ciga_type_update=(evi_id:number,ciga_type:string='')=>{
    return request({
        url: '/api/evi_ciga_type_update/',
        method: 'get',
        params:{evi_id,ciga_type}
    });
}

//获取抽样数据
export const sample_all_data=(case_id:number)=>{
    return request({
        url: '/api/sample_all_data/',
        method: 'get',
        params:{case_id}
    });
}

//获取样本抽样人和抽样时间数据
export const sample_entrust_data=(case_id:number)=>{
    return request({
        url: '/api/sample_entrust_data/',
        method: 'get',
        params:{case_id}
    });
}

export const entrust_inspection_station_data=(case_id:number)=>{
    return request({
        url: '/api/entrust_inspection_station_data/',
        method: 'get',
        params:{case_id}
    });
}

export const save_sample_relate_message=(case_id:number,tir_person:string='',tir_telephone:string='',tir_address:string='',sampling_unit:string='',
                                         client:string='',sampling_person1:string='',sampling_person2:string='',sampling_time:string='',sampling_address:string='',
                                         telephone:string='',postal_code:string='',portraiture:string='',client_address:string='')=>{
    return request({
        url: '/api/save_sample_relate_message/',
        method: 'get',
        params:{case_id,tir_person,tir_telephone,tir_address,sampling_unit,client,sampling_person1,sampling_person2,sampling_time,sampling_address,
            telephone,postal_code,portraiture,client_address}
    });
}

export const save_entrust_relate_message=(case_id:number,sampling_unit:string='',postal_code:string='',sampling_address:string='',contact_person:string='',telephone:string='',portraiture:string='',handle_person:string='',
                                          tir_address:string='',inspection_station_name:string='',inspection_station_address:string='',inspection_station_telephone:string='',inspection_station_portraiture:string='',inspection_station_postcode:string='',
                                          sample_state_describe:string='',remarks:string='')=>{
    return request({
        url: '/api/save_entrust_relate_message/',
        method: 'get',
        params:{case_id,sampling_unit,postal_code,sampling_address,contact_person,telephone,portraiture, handle_person,tir_address,inspection_station_name,
            inspection_station_address,inspection_station_telephone,inspection_station_portraiture,inspection_station_postcode,sample_state_describe,remarks}
    });
}

export const get_entrust_staff_name=(contact_person:string='',handle_person:string='')=>{
    return request({
        url: '/api/entrust_staff_name/',
        method: 'get',
        params:{contact_person,handle_person}
    });
}

//获取抽样时间和抽样人信息
export const sample_people_time_data=(sampling_person1:string='',sampling_person2:string='',sampling_time:string='')=>{
    return request({
        url: '/api/sample_people_time_data/',
        method: 'get',
        params:{sampling_person1,sampling_person2,sampling_time}
    });
}

export const send_feature=(retail_licence_code:string='')=>{
    return request({
        url: '/api/send_feature/',
        method: 'get',
        params:{retail_licence_code}
    });
}

//行政处罚事先告知书数据
export const penalty_advance_notice_data=(case_id:number)=>{
    return request({
        url: '/api/penalty_advance_notice_data/',
        method: 'get',
        params:{case_id}
    });
}

export const end_record_show=(case_id:number)=>{
    return request({
        url: '/api/end_record_show/',
        method: 'get',
        params:{case_id}
    });
}
//鉴别卷烟
export const identify_ciga_data=(case_id:number)=>{
    return request({
        url: '/api/identify_ciga_data/',
        method: 'get',
        params:{case_id}
    });
}

//调查终结文书信息查询
export const staff_evidence_data = (case_id:number) => {
    return request({
        url: '/api/staff_evidence_data/',
        method: 'get',
        params:{case_id}
    });
};
export const staff_evidence_create = (case_id:number,staff_evi_send_per:string, staff_evi_check_per1:string,staff_evi_check_per2:string,staff_evi_send_time:string,staff_evi_send_unit:string, staff_evi_send_result:string,staff_evi_rec_address:string,staff_evi_status:string,staff_evi_per_note:string) => {
    return request({
        url: '/api/staff_evidence_create/',
        method: 'get',
        params:{case_id,
            staff_evi_send_per,
            staff_evi_check_per1,
            staff_evi_check_per2,
            staff_evi_send_time,
            staff_evi_send_unit,
            staff_evi_send_result,
            staff_evi_rec_address,
            staff_evi_status,
            staff_evi_per_note,
        }
    });
};


//售卖网点信息
export const mer_search_api = (mer_name:string='',mer_person:string='') => {
    return request({
        url: '/api/mer_Views/',
        method: 'get',
        params:{mer_name,mer_person}
    });
};

export const fetchData_mer = (mer_name:string='',licence_state:string='' ,mer_person:string='',mer_id:number,retail_licence_code:string='') => {
    return request({
        url: '/api/mer_Views/',
        method: 'get',
        params:{mer_name,licence_state,mer_person,mer_id,retail_licence_code}
    });
};

export const mer_Edit = (mer_id: number,
                         mer_format: string,
                         mer_address: string,
                         mer_person: string,
                         mer_record: string,
                         date_of_record: string,
                         date_of_effect: string,
                         date_of_issue: string,
                         mer_hometown: string,
                         mer_id_number: string,
                         mer_tel: string,
                         business_licence_code: string,
                         licence_state: string,
                         storage_address: string,
                         retail_licence_code: string,
                         category: string,
                         mer_zip_code: number,
                         mer_name: string,
                         mer_age:string,
                         mer_home:string,
                         mer_nation:string) =>{
    return request({
        url: '/api/mer_Edit/',
        method: 'get',
        params:{
            mer_id,
            mer_format,
            mer_address,
            mer_person,
            mer_record,
            date_of_record,
            date_of_effect,
            date_of_issue,
            mer_hometown,
            mer_id_number,
            mer_tel,
            business_licence_code,
            licence_state,
            storage_address,
            retail_licence_code,
            category,
            mer_zip_code,
            mer_name,
            mer_age,
            mer_home,
            mer_nation
        }
    });
};

export const mer_Create = (mer_format:string,
                           mer_address:string,
                           mer_person:string,
                           mer_record:string,
                           date_of_record:string,
                           date_of_effect:string,
                           date_of_issue:string,
                           mer_hometown:string,
                           mer_id_number:string,
                           mer_tel:string,
                           business_licence_code:string,
                           licence_state:string,
                           storage_address:string,
                           retail_licence_code:string,
                           category:string,
                           // area_id:string,
                           mer_zip_code:string,
                           mer_name:string,
                           mer_nation:string,
                           mer_age:string,
                           mer_home:string) =>{
    return request({
        url: '/api/mer_Create/',
        method: 'get',
        params:{
            mer_format,
            mer_address,
            mer_person,
            mer_record,
            date_of_record,
            date_of_effect,
            date_of_issue,
            mer_hometown,
            mer_id_number,
            mer_tel,
            business_licence_code,
            licence_state,
            storage_address,
            retail_licence_code,
            category,
            // area_id,
            mer_zip_code,
            mer_name,
            mer_nation,
            mer_age,
            mer_home}
    });
};

//获取案由信息
export const fetchData_legal_clause = (illegal_behavior:string='',standard:string='' ,grade:string='',tlc_id:number) => {
    return request({
        url: '/api/legal_clause_Views/',
        method: 'get',
        params:{illegal_behavior,standard,grade,tlc_id}
    });
};



//获取问题
export const fetchData_question_clause=(id:number,question:string='')=>{
    return request({
        url: '/api/question_clause_Views/',
        method: 'get',
        params:{id,question}
    });
};

//获取询问人列表
export const fetchData_interrogator_clause=(staff_id:number,staff_name:string='')=>{
    return request({
        url: '/api/interrogator_clause_Views/',
        method: 'get',
        params:{staff_id,staff_name}
    });
};

//获取登陆者真实信息
export const fetchData_get_real_message=(account_number:string='')=>{
    return request({
        url: '/api/real_message_Views/',
        method: 'get',
        params:{account_number}
    });
}

//获取询问笔录信息中卷烟来历信息
export const fetchData_inquiries_record_clause=(case_id:number,id:number,question:string,answer:string)=>{
    return request({
        url: '/api/inquiries_record_clause_Views/',
        method: 'get',
        params:{case_id,id,question,answer}
    });
}

//获取违法事件信息
export const fetchData_illegal_behavior_clause=()=>{
    return request({
        url: '/api/illegal_behavior_clause_Views/',
        method: 'get',
        params:{}
    });
}

//获取归还物品列表
export const fetchData_return_item_clause=(case_id:number)=>{
    return request({
        url: '/api/return_item_clause_Views/',
        method: 'get',
        params:{case_id}
    });
}



//获取裁量标准
export const fetchData_discretionary_clause=(discretionary_id:number,law_name:string='',grade:string='',punish:string='',law_name_grade_punish:string='')=>{
    return request({
        url: '/api/discretionary_clause_Views/',
        method: 'get',
        params:{discretionary_id,law_name,grade,punish,law_name_grade_punish}
    });
}

//获取出席人员和列席人员列表
export const fetchData_attend_person_clause=(staff_id:number,staff_name:string='',staff_name_post:string='')=>{
    return request({
        url: '/api/attend_person_Views/',
        method: 'get',
        params:{staff_id,staff_name,staff_name_post}
    });
}

//获取记录人列表
export const fetchData_recorder_clause=(staff_id:number,staff_name:string='')=>{
    return request({
        url: '/api/recorder_clause_Views/',
        method: 'get',
        params:{staff_id,staff_name}
    });
};

//修改案由api
export const legal_clause_Edit = (illegal_behavior: number,standard: string,penalty_range: string,statutory_penalty: string,specific_rule:string,grade: string,remark:string,tlc_id:number) => {
    return request({
        url: '/api/legal_clause_Edit/',
        method: 'get',
        params:{illegal_behavior,standard,penalty_range,statutory_penalty,specific_rule,grade,remark,tlc_id}
    });
};
//创建案由api
export const legal_clause_create = (illegal_behavior: number,standard: string,penalty_range: string,statutory_penalty: string,legal_clause_create:string,grade: string,remark:string) => {
    return request({
        url: '/api/legal_clause_create/',
        method: 'get',
        params:{illegal_behavior,standard,penalty_range,statutory_penalty,legal_clause_create,grade,remark}
    });
};
//删除案由api
export const legal_clause_delete = (tlc_id:number) => {
    return request({
        url: '/api/legal_clause_delet/',
        method: 'get',
        params:{tlc_id}
    });
};
export const merchant_message_delete=(mer_id:number)=>{
    return request({
        url: '/api/merchant_message_delete/',
        method: 'get',
        params:{mer_id}
    });
}

//删除人员信息
export const employee_delete = (staff_id:number) => {
    return request({
        url: '/api/employee_delete/',
        method: 'get',
        params:{staff_id}
    });
};
//删除人员信息
export const tobacco_delete = (ciga_id:number) => {
    return request({
        url: '/api/tobacco_delete/',
        method: 'get',
        params:{ciga_id}
    });
};



//卷烟信息api
export const fetchData_tobacco = (ciga_type:string='',ciga_variety:string='' ,ciga_model:string='',barcode:string='') => {
    return request({
        url: '/api/ciga_Views/',
        method: 'get',
        params:{ciga_type,ciga_variety,ciga_model,barcode}
    });
};

//修改个人信息
export const fetchData_user_realMessage=(username:string | undefined)=>{
    return request({
        url: '/api/user_realMessage_Views/',
        method: 'get',
        params:{username}
    });
}

export const tobacco_Edit = (
    ciga_id:number,
    ciga_type:string,
    ciga_variety:string,
    barcode:string,
    ciga_model:string,
    ciga_price:number,
    ciga_category:string,
    packaging_form:string,
    ciga_industry:string,
    quantity:string,
    price_sign:string
) =>{
    return request({
        url: '/api/ciga_Edit/', //这个就是后端接口地址 所以地址在哪？
        method: 'get',
        params:{
            ciga_id, ciga_type, ciga_variety, barcode, ciga_model, ciga_price,ciga_category,packaging_form,ciga_industry,
            quantity,price_sign}
    });
};

export const tobacco_Create = (ciga_type:string, ciga_variety:string, barcode:string, ciga_model:string, ciga_price:number,
    ciga_category:string,packaging_form:string,ciga_industry:string,quantity:string,price_sign:string
                               ) =>{
    return request({
        url: '/api/ciga_Create/',
        method: 'get',
        params:{ciga_type, ciga_variety, barcode, ciga_model, ciga_price,ciga_category,packaging_form,ciga_industry,
            quantity,price_sign
        }
    });
};
export const case_legal_Create = (
    illegal_behavior:string,
    standard:string,
    tlc_id:number,
    case_id:number,
    case_number:string,
    remark:string,
    evi_id_number:string,
) =>{
    return request({
        url: '/api/create_illegal_record/',
        method: 'get',
        params:{
            illegal_behavior,
            standard,
            tlc_id,
            case_id,
            case_number,
            remark,
            evi_id_number,}
    });
};


export const ciga_evudence_Create = (

    case_id:number,
    evi_number:number,
    ciga_variety:string,
    barcode:string,
    ciga_model:string,
    ciga_price:number,
    inkjet:string,
    evi_id_number:string,

) =>{
    return request({
        url: '/api/create_case_evidence/',
        method: 'get',
        params:{
            case_id,
            evi_number,
            ciga_variety,
            barcode,
            ciga_model,
            ciga_price,
            inkjet,
            evi_id_number,}
    });
};



export const case_evi_Create = (
    evi_id_number:string,
    case_id:number,
    tce_remark:string,
    tce_address:string,
) =>{
    return request({
        url: '/api/case_evi_create/',
        method: 'get',
        params:{
            evi_id_number,
            case_id,
            tce_remark,
            tce_address,}
    });
};

export const case_evi_Views = (
    evi_id_number:string,
    case_id:number,
) =>{
    return request({
        url: '/api/case_evi_Views/',
        method: 'get',
        params:{
            evi_id_number,
            case_id,}
    });
};

export const inkjet_record_Views=(case_id:number)=>{
    return request({
        url: '/api/inkjet_record_Views/',
        method: 'get',
        params:{case_id}
    });
}

//问答显示
export const question_answer_show = (case_id:number) => {
    return request({
        url: '/api/question_answer_show/',
        method: 'get',
        params:{case_id}
    });
};

//发言内容显示
export const speak_data_show=(case_id:number,speak_session:string='')=>{
    return request({
        url: '/api/speak_data_show/',
        method: 'get',
        params:{case_id,speak_session}
    });
}

//添加问题与答案
export const question_answer_Create=(case_id:number, question:string='', answer:string='')=>{
    return request({
        url: '/api/question_answer_create/',
        method: 'get',
        params:{case_id, question, answer}
    });
}

//添加返还物品
export const return_item_Create=(case_id:number,evi_id:string='')=>{
    return request({
        url: '/api/return_item_Create/',
        method: 'get',
        params:{case_id,evi_id}
    });
}

//设置默认回答
export const default_answer=(case_id:number,question_selection:string='')=>{
    return request({
        url: '/api/default_answer/',
        method: 'get',
        params:{case_id,question_selection}
    });
}

//删除问答api
export const question_answer_clause_delete = (id:number) => {
    return request({
        url: '/api/question_answer_clause_delete/',
        method: 'get',
        params:{id}
    });
};

//删除涉案物品api
export const return_item_clause_delete=(item_id:number)=>{
    return request({
        url: '/api/return_item_clause_delete/',
        method: 'get',
        params:{item_id}
    });
}


//删除发言api
export const speak_data_clause_delete=(id:number)=>{
    return request({
        url: '/api/speak_data_clause_delete/',
        method: 'get',
        params:{id}
    });
}

//先行登记保存物品处理通知书数据显示
export const advanced_disposal_notice_data=(case_id:number)=>{
    return request({
        url: '/api/advanced_disposal_notice_data/',
        method: 'get',
        params:{case_id}
    });
}


//行政处罚事先告知书
export const advance_penalty_data=(case_id:number)=>{
    return request({
        url: '/api/advance_penalty_data/',
        method: 'get',
        params:{case_id}
    });
}

//上移操作
export const question_answer_move=(id:number,case_id:number)=>{
    return request({
        url: '/api/question_answer_move/',
        method: 'get',
        params:{id,case_id}
    });
}

//核价表信息删除api
export const price_review_clause_delete=(id:number)=>{
    return request({
        url: '/api/price_review_clause_delete/',
        method: 'get',
        params:{id}
    });
};


export const evi_Views = (evi_id_number:string, case_id:number) =>{
    return request({
        url: '/api/evi_Views/',
        method: 'get',
        params:{evi_id_number, case_id}
    });
};

//获取归还物品
export const return_item_Views=(case_id:number)=>{
    return request({
        url: '/api/return_item_Views/',
        method: 'get',
        params:{case_id}
    });
}


//获取要打印的卷烟喷码的信息
export const inkjet_record_print_data_Views=(case_id:number)=>{
    return request({
        url: '/api/inkjet_record_print_data_Views/',
        method: 'get',
        params:{case_id}
    });
}

export const fetchData_evidence = () => {
    return request({
        url: './table_tobacco.json',
        method: 'get'
    });
};
export const fetchData_user = (name:string = '',post:string='',staff_account_no:string='') => {
    return request({
        url: '/api/user_Views/',
        method: 'get',
        params: {name,post,staff_account_no}
    });
};

export const fetchData_user_Create = (staff_account_no:string='',
                                      staff_account_pwd:string='',
                                      staff_name:string='',
                                      staff_gender:string='',
                                      staff_birthday:string='',
                                      staff_ethnicity:string='',
                                      staff_edu_bg:string='',
                                      staff_email:string='',
                                      field_staff_identity_card:string='',
                                      staff_hometown:string='',
                                      staff_degree:string='',
                                      staff_political_status:string='',
                                      staff_post:string='',
                                      work_unit_name:string='',
                                      staff_starting_time:string='',
                                      staff_authorized:string='',
                                      staff_phone:string='',
                                      staff_tel:string='',
                                      staff_e_sign:string='',
                                      staff_small_numbe:string='',
                                      staff_license_no:string='',
                                      staff_now_work_degree:string='',
                                      staff_now_evaluate_degree:string='') => {
    return request({
        url: '/api/user_Create/',
        method: 'GET',
        params: {staff_account_no,
            staff_account_pwd,
            staff_name,
            staff_gender,
            staff_birthday,
            staff_ethnicity,
            staff_edu_bg,
            staff_email,
            field_staff_identity_card,
            staff_hometown,
            staff_degree,
            staff_political_status,
            staff_post,
            work_unit_name,
            staff_starting_time,
            staff_authorized,
            staff_phone,
            staff_tel,
            staff_e_sign,
            staff_small_numbe,
            staff_license_no,
            staff_now_work_degree,
            staff_now_evaluate_degree}
    });
};

export const fetchData_user_Edit = (
    staff_account_no:string,
    staff_account_pwd:string,
    staff_id:number,
    staff_name:string,
    staff_gender:string,
    staff_birthday:string,
    staff_ethnicity:string,
    staff_edu_bg:string,
    staff_email:string,
    field_staff_identity_card:string,
    staff_hometown:string,
    staff_degree:string,
    staff_political_status:string,
    staff_post:string,
    work_unit_name:string,
    staff_starting_time:string,
    staff_authorized:string,
    staff_phone:string,
    staff_tel:string,
    staff_e_sign:string,
    staff_small_numbe:string,
    staff_license_no:string,
    staff_now_work_degree:string,
    staff_now_evaluate_degree:string) => {
    return request({
        url: '/api/user_Edit/',
        method: 'GET',
        params: {
            staff_account_no,
            staff_account_pwd,
            staff_id,
            staff_name,
            staff_gender,
            staff_birthday,
            staff_ethnicity,
            staff_edu_bg,
            staff_email,
            field_staff_identity_card,
            staff_hometown,
            staff_degree,
            staff_political_status,
            staff_post,
            work_unit_name,
            staff_starting_time,
            staff_authorized,
            staff_phone,
            staff_tel,
            staff_e_sign,
            staff_small_numbe,
            staff_license_no,
            staff_now_work_degree,
            staff_now_evaluate_degree}
    });
};

export const fetchData_price_Edit=(evi_id:number,case_id:number,ciga_price:number,evi_number:number)=>{
    return request({
        url: '/api/price_Edit/',
        method: 'get',
        params: {evi_id,case_id,ciga_price,evi_number}
    });
}

export const fetData_save_investigate=(case_id:number,speak_session:string='',investigate_case:string='',spokesman:string='',
                                       investigate_content:string='')=>{
    return request({
        url: '/api/save_Investigate/',
        method: 'get',
        params: {case_id,speak_session,investigate_case,spokesman,investigate_content}
    });
}

export const fetData_save_other_Speak=(case_id:number,speak_session:string='',other_speak:string='',spokesman:string='',
                                       speak_content:string='')=>{
    return request({
        url: '/api/save_other_Speak/',
        method: 'get',
        params: {case_id,speak_session,other_speak,spokesman,speak_content}
    });
}

export const fetchData_inkjet_Edit=(case_id:number,ciga_variety:string='',inkjet:string='',evi_id_number:string='',
                                    ciga_type:string='',barcode:string='',ciga_model:string='',ciga_price:number)=>{
    return request({
        url: '/api/inkjet_Edit/',
        method: 'get',
        params: {case_id,ciga_variety,inkjet,evi_id_number,ciga_type,barcode,ciga_model,ciga_price}
    });
}



//问题回答修改api
export const fetchData_question_answer_Edit=(id:number,case_id:number,question:string='',answer:string='')=>{
    return request({
        url: '/api/question_answer_Edit/',
        method: 'get',
        params: {id,case_id,question,answer}
    });
}

//保存发言信息
export const fetchData_save_Speak_Edit=(id:number,speak_content:string='')=>{
    return request({
        url: '/api/save_Speak_Edit/',
        method: 'get',
        params: {id,speak_content}
    });
}



//询问笔录确认
export const fetchData_inquiry_record_Confirm=(case_id:number,date_of_filing:string='',tce_address:string='',user_id_1:number,user_name_1:string='',
                                               user_id_2:number,user_name_2:string='',recorder:string='',mer_person:string='',gender:string='',
                                               nation:string='',identity_card:string='',family_address:string='',business_address:string='',
                                               telephone_number:string='',tir_age:string='',native_place:string='')=>{
    return request({
        url: '/api/inquiry_record_Confirm/',
        method: 'get',
        params: {case_id,date_of_filing,tce_address,user_id_1,user_name_1,user_id_2,user_name_2,recorder,mer_person,gender,nation,identity_card,family_address,
        business_address,telephone_number,tir_age,native_place}
    });
}

//个人信息修改确认
export const Save_personal_information_Confirm=(staff_name:string='',staff_gender:string='',staff_birthday:string='',staff_ethnicity:string='',staff_edu_bg:string='',
                                                staff_email:string='',field_staff_identity_card:string='',staff_hometown:string='',staff_degree:string='',staff_political_status:string='',
                                                staff_post:string='',staff_account_no:string='',staff_account_pwd:string='',staff_starting_time:string='',staff_authorized:string='',
                                                staff_phone:string='',staff_tel:string='',staff_identity_license_no:string='',staff_license_no:string='',staff_now_work_degree:string='',staff_now_evaluate_degree:string='')=>{
    return request({
        url: '/api/personal_information_Confirm/',
        method: 'get',
        params: {staff_name,staff_gender,staff_birthday,staff_ethnicity,staff_edu_bg,staff_email,field_staff_identity_card,staff_hometown,staff_degree,staff_political_status,staff_post,staff_account_no,
            staff_account_pwd,staff_starting_time,staff_authorized,staff_phone,staff_tel,staff_identity_license_no,staff_license_no,staff_now_work_degree,staff_now_evaluate_degree}
    });
}


//行政罚款依据确认
export const fetchData_case_return_Confirm=(case_id:number,return_time:string='',identificate_loss:string='',returnee1:string='',returnee2:string='')=>{
    return request({
        url: '/api/case_return_Confirm/',
        method: 'get',
        params: {case_id,return_time,identificate_loss,returnee1,returnee2}
    });
}

//行政罚款收据数据
export const administrative_fine_browse_data=(case_id:number)=>{
    return request({
        url: '/api/administrative_fine_browse_data/',
        method: 'get',
        params: {case_id}
    });
}

//结案报告表信息获取
export const case_final_report_storage=(case_id:number)=>{
    return request({
        url: '/api/case_final_report_storage/',
        method: 'get',
        params: {case_id}
    });
}



//行政罚款收据数据获取
export const return_item_print_data=(case_id:number)=>{
    return request({
        url: '/api/return_item_print_data/',
        method: 'get',
        params: {case_id}
    });
}

//获取案件实施情况
export const implement_situation=(case_id:number)=>{
    return request({
        url: '/api/implement_situation/',
        method: 'get',
        params: {case_id}
    });
}


//听证告知书送达文书确认
export const fetchData_arrive_document_Confirm=(case_id:number,arrive_document_name:string='',addressee:string='',arrive_number:string='',arrive_place:string='',
                                                service_mode:string='',receipt_signature:string='',receipt_time:string='',subsitute_reason:string='',witness_signature:string='',
                                                arrive_person1:string='',arrive_person2:string='',arrive_time:string='',remarks:string='')=>{
    return request({
        url: '/api/arrive_document_Confirm/',
        method: 'get',
        params: {case_id,arrive_document_name,addressee,arrive_number,arrive_place,service_mode,receipt_signature,receipt_time,subsitute_reason,witness_signature,
            arrive_person1,arrive_person2,arrive_time,remarks}
    });
}

//听证告知书保存
export const fetchData_hearing_notice_Confirm=(case_id:number,illegal_behavior:string='',tir_person:string='',violate_law:string='',penalty_decision:string='',punish_basis:string='',undertaker1:string='',undertaker2:string='',
                                               hearing_time:string='',bureau_address:string='',postal_code:string='',telephone_number:string='')=>{
    return request({
        url: '/api/hearing_notice_Confirm/',
        method: 'get',
        params: {case_id,illegal_behavior,tir_person,violate_law,penalty_decision,punish_basis,undertaker1,undertaker2, hearing_time,bureau_address,postal_code,telephone_number}
    });
}

export const fetchData_advance_notice_Confirm=(case_id:number,illegal_behavior:string='',tir_person:string='',tir_gender:string='',tir_age:string='',household_registration:string='',
                                               tir_id_number:string='',retail_licence_code:string='',violate_law:string='',penalty_decision:string='',punish_basis:string='',write_time:string='',
                                               staff_deliverer1:string='',staff_deliverer2:string='')=>{
    return request({
        url: '/api/advance_notice_Confirm/',
        method: 'get',
        params: {case_id,illegal_behavior,tir_person,tir_gender,tir_age,household_registration, tir_id_number,retail_licence_code,violate_law,penalty_decision,punish_basis,write_time, staff_deliverer1,staff_deliverer2}
    });
}

export const fetchData_punish_decision_Confirm=(case_id:number,illegal_behavior:string='',tir_person:string='',tir_gender:string='',tir_age:string='',household_registration:string='',
                                               tir_id_number:string='',retail_licence_code:string='',violate_law:string='',penalty_decision:string='',punish_basis:string='',write_time:string=''
                                               )=>{
    return request({
        url: '/api/punish_decision_Confirm/',
        method: 'get',
        params: {case_id,illegal_behavior,tir_person,tir_gender,tir_age,household_registration, tir_id_number,retail_licence_code,violate_law,penalty_decision,punish_basis,write_time}
    });
}


//集体讨论确认
export const fetchData_collective_discuss_Confirm=(case_id:number,case_cause:string='',case_number:string='',tir_person:string='',start_date_of_filing:string='',
                                                   end_date_of_filing:string='',discuss_address:string='',host_staff:string='',recorder_staff:string='',attend_person_all:string='',
                                                   sit_attend_person_all:string='',punish_decision:string='',crime_number:string='')=>{
    return request({
        url: '/api/collective_discuss_Confirm/',
        method: 'get',
        params: {case_id,case_cause,case_number,tir_person,start_date_of_filing, end_date_of_filing,discuss_address,host_staff,recorder_staff,attend_person_all, sit_attend_person_all,punish_decision,crime_number}
    });
}

//案件处理审批表确认
export const fetchData_case_handing_Confirm=(case_id:number,case_cause:string='',name:string='',statutory_responsible_person:string='',address:string='',tel:string='',tir_person:string='',
                                             tir_gender:string='',tir_nation:string='',tir_id_number:string='',retail_licence_code:string='',telephone_number:string='',crime_number:string='',conspirator:string='',tir_home:string='',
                                             undertaker1:string='',undertaker2:string='',write_time:string='',cigarette_origin:string='',violate_law:string='',punish_basis:string='',
                                             discretionary_standard:string='',penalty_money:string='',penalty_decision:string='')=>{
    return request({
        url: '/api/case_handing_Confirm/',
        method: 'get',
        params: {case_id,case_cause,name,statutory_responsible_person,address,tel,tir_person,tir_gender,tir_nation,tir_id_number,retail_licence_code,telephone_number,crime_number,conspirator,tir_home,undertaker1,undertaker2,
            write_time,cigarette_origin,violate_law,punish_basis,discretionary_standard,penalty_money,penalty_decision}
    });
}

//结案报告表确认
export const fetchData_case_final_report_Confirm=(case_id:number,end_case_time:string='')=>{
    return request({
        url: '/api/case_final_report_Confirm/',
        method: 'get',
        params: {case_id,end_case_time}
    });
}


//现场勘验笔录确认
export const fetchData_check_record_Confirm=(case_id:number,date_of_filing:string='',user_id_1:number,user_name_1:string='', user_id_2:number,user_name_2:string='',
                                             mer_address:string='',mer_person:string='',mer_record:string='',mer_name:string='',retail_licence_code:string='',
                                             category:string='')=>{
    return request({
        url: '/api/check_record_Confirm/',
        method: 'get',
        params: {case_id,date_of_filing,user_id_1,user_name_1,user_id_2,user_name_2,mer_address,mer_person,mer_record,mer_name,retail_licence_code,category}
    });
}

//现场勘验笔录确认
export const fetchData_check_record_Submit=(case_id:number)=>{
    return request({
        url: '/api/check_record_Submit/',
        method: 'get',
        params: {case_id}
    });
}


export const fetchData_case = (archive_person:string = '',case_id:number, case_source:string='',case_type:string='',
                               case_number:string='',tcs_note_id:string='',name:string='') => {//获取案件数据
    return request({
        url: '/api/case_Views/',
        method: 'get',
        params: {archive_person,case_id,case_source,case_type,case_number,tcs_note_id,name}
    });
};

export const fetchData_case2 = (archive_person:string = '',case_id:number, case_source:string='',case_type:string='',
                                       case_number:string='',tcs_note_id:string='',name:string='') => {//获取案件数据
    return request({
        url: '/api/case_Views2/',
        method: 'get',
        params: {archive_person,case_id,case_source,case_type,case_number,tcs_note_id,name}
    });
};


export const sample_data_staff_time=(case_id:number)=>{
    return request({
        url: '/api/sample_data_staff_time/',
        method: 'get',
        params: {case_id}
    });
}


export const fetchData_case1 = (archive_person:string = '',case_id:number, case_source:string='',case_type:string='',
                               case_number:string='',tcs_note_id:string='',name:string='') => {//获取案件数据
    return request({
        url: '/api/case_Views1/',
        method: 'get',
        params: {archive_person,case_id,case_source,case_type,case_number,tcs_note_id,name}
    });
};

export const edit_ille_record =(case_id:number,evi_id_number:string='',tlc_id:number) =>{
    return request({
        url: '/api/edit_illegal_record/',
        method: 'get',
        params: {case_id,evi_id_number,tlc_id}
    });
}

export const fetchData_case_Create = (
    ciga_flag:string='',
    mer_flag:string='',
    business_licence_code:string='',
    date_of_filing:string='',
    date_of_closing:string='',
    date_of_archive:string='',
    case_source:string='',
    case_number:string='',
    archive_person:string='',
    case_update_time:string='',
    case_type:string='',
    case_remark:string='',
    tcs_note:string='',
) => {
    return request({
        url: '/api/case_Create/',
        method: 'GET',
        params: {
            ciga_flag,
            mer_flag,
            business_licence_code,
            date_of_filing,
            date_of_closing,
            date_of_archive,
            case_source,
            case_number,
            archive_person,
            case_update_time,
            case_type,
            case_remark,
            tcs_note,
        }
    });
};

//更新案件状态
export const fetchData_case_update = (case_id:number,tcs_note:string='',) => {
    return request({
        url: '/api/case_state_update/',
        method: 'GET',
        params: {
            case_id,
            tcs_note,
        }
    });
};


export const login_data = ( user_name:string,password:string) => {
    return request({
        url: '/api/login/',
        method: 'GET',
        params: {user_name,password}
    });
};


